package com.example.gsq.news.util;

public class C {


    public static final String APP_KEY = "538f07ffe5542e8908e93888d7bc321f";

    public static class TaskId {
        public static final int ACTIVITY_GET_JSON_LIST = 1001;
        public static final int ACTIVITY_GET_ITEM_BITMAP = 1002;
        public static final int FRAGMENT_GET_JSON_LIST = 1003;
        public static final int FRAGMENT_GET_ITEM_BITMAP = 1004;
    }

    public static class TaskStatus {
        public static final int TASK_COMPLETE = 2001;
    }

    public static class TaskType {
        public static final int TASK_PULL_REFRESH = 3001;
        public static final int TASK_PULL_LOADMORE = 3002;
    }

    public static String getNewsUrl(String type) {
        return News.NEWS_URL + "?type=" + type + "&key=" + APP_KEY;
    }

    public static class News {
        public static final String NEWS_URL = "http://v.juhe.cn/toutiao/index";
        public static final String NEWS_TYPE_TOP = "top";
        public static final String NEWS_TYPE_SHEHUI = "shehui";
        public static final String NEWS_TYPE_GUONEI = "guonei";
        public static final String NEWS_TYPE_GUOJI = "guoji";
        public static final String NEWS_TYPE_YULE = "yule";
        public static final String NEWS_TYPE_KEJI = "keji";
        public static final String NEWS_TYPE_TIYU = "tiyu";
        public static final String NEWS_TYPE_JUNSHI = "junshi";
    }

}
